﻿@using Microsoft.Web.Helpers
@model MayhemServer.Models.mayhem_Contest

@{
	ViewBag.Title = "Submit contest entry";
	Layout = "~/Views/Shared/_Layout.cshtml";
	ReCaptcha.PublicKey = "6Le_Vc4SAAAAAF-I0LNbBfwfY1p7TA00BrXw4xaX";
}

<style type="text/css">
	.column
	{
		float: left;
		margin-right: 20px;
	}
	.input-validation-error
	{
		border: 1px solid #ff0000;
	}
</style>
<h1>
	Submit your contest entry</h1>
<p>
	@Html.ValidationSummary()
</p>
<form action="@Href("~/Contest/Enter")" method="post">
<div class="column">
	<div class="editor-label">
		@Html.Label("FName", "First Name")
	</div>
	<div class="editor-field">
		@Html.TextBox("FName", (string)ViewBag.Entry.FName ?? "")
	</div>
	<div class="editor-label">
		@Html.Label("LName", "Last Name")
	</div>
	<div class="editor-field">
		@Html.TextBox("LName", (string)ViewBag.Entry.LName ?? "")
	</div>
	<div class="editor-label">
		@Html.Label("Email", "Email")
	</div>
	<div class="editor-field">
		@Html.TextBox("Email", (string)ViewBag.Entry.Email ?? "")
	</div>
</div>
<div class="column">
	<div class="editor-label">
		@Html.Label("AddOn", "Add-on Name")
	</div>
	<div class="editor-field">
		@Html.TextBox("AddOn", (string)ViewBag.Entry.AddOn ?? "")
	</div>
	<div class="editor-label">
		@Html.Label("Youtube", "YouTube Video Link")
	</div>
	<div class="editor-field">
		@Html.TextBox("Youtube", (string)ViewBag.Entry.Youtube ?? "")
	</div>
	<div class="editor-label">
		@Html.Label("Source", "Link to Source Code Repository")
	</div>
	<div class="editor-field">
		@Html.TextBox("Source", (string)ViewBag.Entry.Source ?? "")
	</div>
</div>
<p style="clear: both;">
	@ReCaptcha.GetHtml()
	<input type="submit" value="Sign-up" />
</p>
</form>